
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition template="template.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:comp="http://java.sun.com/jsf/composite/componentes"
	xmlns:t="http://myfaces.apache.org/tomahawk"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
	<ui:define name="coluna_central">

		<div class="row">
			<div class="span12">
				<div class="breadcrumb">
					<a> <h:outputText
							value="#{descricaoBean.ofertaSelecionada.codProduto.catProduto}"></h:outputText>
					</a>
				</div>
				<div class="row">
					<div class="span12">
						<div class="span6">
							<div class="thumbnail" style="text-align: center;">
								<img
									src="data:image/png;base64,${descricaoBean.ofertaSelecionada.codProduto.foto}"
									style="width: 300px; height: 184px"></img>
							</div>
						</div>
						<div class="span5 well" style="height: 155px">
							<div>
								<h2>
									<h:outputText
										value="#{descricaoBean.ofertaSelecionada.codProduto.nomeProduto}"></h:outputText>
									<p />
								</h2>
								<h:outputText
									value="#{descricaoBean.ofertaSelecionada.codProduto.descProduto}"></h:outputText>
								<p />
								<h3>
									<h:outputText
										value="R$ #{descricaoBean.ofertaSelecionada.codProduto.valorProduto}"></h:outputText>
									<p />
								</h3>
							</div>
							<h:form class="bs-example form-horizontal">
								<h:commandButton class="btn btn-primary btn-small search_btn"
									value="Comprar" action="#{compraBean.validaLogin}">
								</h:commandButton>
							</h:form>
						</div>
					</div>
					<!-- end categories -->
				</div>

			</div>

		</div>
		<br />
	</ui:define>
</ui:composition>